.maintain-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
    overflow: hidden;
    padding: 16px;
    max-width: 1200px;

}

.filter-section {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-select {
    flex-shrink: 0;
}

.no-margin {
    margin: 0;
}

.date-section {
    flex: 1;
    position: relative;
    margin: 0;
    padding: 0;
    max-width: 800px;

}

.date-scroll-wrapper {
    position: relative;
    overflow-x: scroll;
    width: 100%;
    padding: 10px 0;

    /* 自定义滚动条样式 */
    &::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
        background: #838486;
        border-radius: 4px;
    }
}

.date-scroll-content {
    display: inline-flex;
    padding: 0 10px;
    min-width: 100%;
    position: relative;
}


.day-item {
    flex: 0 0 90px;
    padding: 10px;
    margin-right: 10px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    &:last-child {
        margin-right: 0;
        /* 最后一个日期项不需要右边距 */
    }

    &.active {
        background-color: #409eff;
        color: #fff;
        position: relative;

        &::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -2px;
            height: 2px;
        }
    }

    .day-name {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .day-date {
        font-size: 16px;
        font-weight: 500;
    }
}



.venue-column {
    text-align: center;
    height: 40px;
    flex: 0 0 120px;
    border-bottom: 1px solid #ebeef5;
}


.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}



.table-container {
    height: 500px;
    display: flex;

    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.time-axis {
    overflow: hidden;
    /* 禁止用户滚动 */
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f5f7fa;
    border-right: 1px solid #ebeef5;
    width: 80px;
    /* 隐藏滚动条（兼容主流浏览器） */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.time-axis::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

.time-cell {
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-bottom: 1px solid #d6d7da;
    background: #f5f7fa;
}

.time-cell:last-child {
    border-bottom: none;
}

.venue-table {
    flex: 1;
    overflow: auto;
}

.venue-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    background: #f5f7fa;
}



.venue-body {
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.venue-row {
    display: flex;
}

.venue-cell {
    padding: 0;
    flex: 0 0 120px;
    text-align: center;
    border-bottom: 1px solid #b3b4b7;
    border-right: 1px solid #b3b4b7;
    cursor: pointer;
    transition: all 0.3s;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-cell.normal {
    background-color: #b7eb8f;
    /* 更深的绿色 */
    color: #237804;
}

.venue-cell.selected {
    background-color: #ffe58f;
    /* 黄色 */
    color: #ad6800;
}

.venue-cell.reserved {
    background-color: #91d5ff;
    /* 蓝色 */
    color: #0050b3;
}

.venue-cell.maintain {
    background-color: #d9d9d9;
    /* 灰色 */
    color: #595959;
}

.color-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.color-box.normal {
    background-color: #b7eb8f;
    border: 1.5px solid #237804;
}

.color-box.selected {
    background-color: #ffe58f;
    border: 1.5px solid #ad6800;
}

.color-box.reserved {
    background-color: #91d5ff;
    border: 1.5px solid #0050b3;
}

.color-box.maintain {
    background-color: #d9d9d9;
    border: 1.5px solid #595959;
}

.maintenance-records {
    margin-top: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    /* 移除下面这两行 */
    /* align-self: center; */
    max-width: 1200px;
}

.form-section.maintenance-records h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
